<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <title>注册 - 心灵港湾</title>
    <link rel="stylesheet" href="../css/common.css">
    <link rel="stylesheet" href="../css/register.css">
    <script src="../utils/validUtils.js"></script>
    <script src="../js/register.js"></script>
</head>
<body>
    <div class="main-container">
        <div class="left-section"></div>
        <div class="right-section">
            <div class="login-header">
                心理健康科普平台

            </div>
            <div class="register-container">
                <h2>创建账号</h2>
                <form id="registerForm">
                    <div class="form-group">
                        <label for="username">用户名/手机号</label>
                        <input type="text" id="username" name="username" required>
                        <span class="error-message"></span>
                    </div>
                    <div class="form-group">
                        <label for="password">密码</label>
                        <input type="password" id="password" name="password" required>
                        <button type="button" class="toggle-password" aria-label="显示密码"></button>
                        <span class="error-message"></span>
                    </div>
                    <div class="form-group">
                        <label for="confirm_password">确认密码</label>
                        <input type="password" id="confirm_password" name="confirm_password" required>
                        <button type="button" class="toggle-password" aria-label="显示密码"></button>
                        <span class="error-message"></span>
                    </div>
                    <button type="submit" class="btn">注册</button>
                    <div class="login-link">
                        已有账号？<a href="login.html">立即登录</a>
                    </div>
                </form>
            </div>
        </div>
    </div>
</body>
</html>